import request from '@/utils/request'

// 查询单项水质合格率统计列表
export function listDispatchSingleWaterQualityIndicatorQualifiedRateStats(query) {
  return request({
    url: '/system/dispatchSingleWaterQualityIndicatorQualifiedRateStats/list',
    method: 'get',
    params: query
  })
}

// 查询单项水质合格率统计详细
export function getDispatchSingleWaterQualityIndicatorQualifiedRateStats(singleWaterQualityIndicatorQualifiedRateStatsId) {
  return request({
    url: '/system/dispatchSingleWaterQualityIndicatorQualifiedRateStats/' + singleWaterQualityIndicatorQualifiedRateStatsId,
    method: 'get'
  })
}

// 新增单项水质合格率统计
export function addDispatchSingleWaterQualityIndicatorQualifiedRateStats(data) {
  return request({
    url: '/system/dispatchSingleWaterQualityIndicatorQualifiedRateStats',
    method: 'post',
    data: data
  })
}

// 修改单项水质合格率统计
export function updateDispatchSingleWaterQualityIndicatorQualifiedRateStats(data) {
  return request({
    url: '/system/dispatchSingleWaterQualityIndicatorQualifiedRateStats',
    method: 'put',
    data: data
  })
}

// 删除单项水质合格率统计
export function delDispatchSingleWaterQualityIndicatorQualifiedRateStats(singleWaterQualityIndicatorQualifiedRateStatsId) {
  return request({
    url: '/system/dispatchSingleWaterQualityIndicatorQualifiedRateStats/' + singleWaterQualityIndicatorQualifiedRateStatsId,
    method: 'delete'
  })
}
